http://faq.cprogramming.com/cgi-bin/...&id=1043284376
thats the faq page for it, but i didnt understand what it meant. ive always used int main(), but my compiler defaults to int main (int argc, char *argv[]). i dont see what the difference is.
is int main(int argc, char *argv[], char *envp[]) the same thing as (int argc, char *argv[])? thanks for the helpBut what about int main(int argc, char *argv[], char *envp[])
As an extension to the guaranteed standard, an additional parameter to main() can, on some systems, be used to gain access to the environment variables. This is isn't guaranteed to work on all compilers, so use it with care if you want to keep your code portable.